using System;
using System.Collections.Generic;

namespace RestNews.Data.Models
{
    public class Person
    {
        public Person()
        {
            this.NewsItems = new List<NewsItem>();
            this.PersonReadNews = new List<PersonReadNew>();
        }

        public long Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Address { get; set; }
        public long UserId { get; set; }
        public virtual ICollection<NewsItem> NewsItems { get; set; }
        public virtual User User { get; set; }
        public virtual ICollection<PersonReadNew> PersonReadNews { get; set; }
    }
}
